﻿<div class="modal fade" id="basic" tabindex="-1" role="basic" aria-hidden="true" data-backdrop="static">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">上传文件</h4>
            </div>

            <div class="modal-body">
                <form id="uploadFile" enctype="multipart/form-data" method="post">
                    <div class="fileinput fileinput-new input-group" data-provides="fileinput">
                        <div class="form-control" data-trigger="fileinput"><i class="glyphicon glyphicon-file fileinput-exists"></i><span class="fileinput-filename"></span></div>
                        <span class="input-group-addon btn btn-default btn-file"><span class="fileinput-new">选择文件</span><span class="fileinput-exists">更换</span><input type="file" name="upload" id="upload"></span>
                        <a href="#" class="input-group-addon btn btn-default fileinput-exists" data-dismiss="fileinput">删除</a>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn default" data-dismiss="modal" id="btnCancel">取消</button>
                <button type="button" class="btn blue" id="btnUpload">确定</button>
            </div>
        </div>
    </div>
</div>
<div id="bkDiv">
    <a class="btn default" id="ajax-background" data-toggle="modal" href="#ajax" id="triggerbackground" style="display: none">ajax</a>
</div>
<div class="modal fade" id="ajax" tabindex="-1" role="ajax" aria-hidden="true" data-backdrop="static">
    <img src="~/Image/ajax-modal-loading.gif" alt="loading" class="loading" />
    <div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-default" id="btn-ajax-background" style="display: none">Cancel</button>
    </div>
</div>